'''
Created on Apr 27, 2011

@author: ck
'''
import wx
id_quit=1

class SubMenu(wx.Frame):
    def __init__(self,parent,id,title):
        wx.Frame.__init__(self,parent,id,title,size=(350,250))
        menubar=wx.MenuBar()
        file=wx.Menu()
        
        file.Append(-1,'&New')
        file.Append(-1,'&Open')
        file.Append(-1,'&Save')
        file.AppendSeparator()
        
        
        
        imp=wx.Menu()
       
        imp.Append(-1,'Import newsfeed list...')
        imp.Append(-1,'Import bookmarks...')
        imp.Append(-1,'Import mail...')
        
        file.AppendMenu(-1,'I&mport',imp)
        
        quit=wx.MenuItem(file,id_quit,'&Quit\tCtrl+W')
        file.AppendItem(quit)
        
        self.Bind(wx.EVT_MENU, self.OnQuit,id=id_quit)
                
        menubar.Append(file,'&File')
        self.SetMenuBar(menubar)
        self.Center()
        self.Show(True)
        
    def OnQuit(self,event):
        self.Close()
        
app=wx.App()
SubMenu(None,-1,'Sub menu')
app.MainLoop()

        
        
        
    
